<template>
  <div>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="精选" name="featured">
        <featured></featured>
      </el-tab-pane>
      <el-tab-pane label="歌单分类" name="classification">歌单分类</el-tab-pane>
      <el-tab-pane label="排行榜" name="leaderboard">排行榜</el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Featured from "./Main/Featured";

export default {
  name: "sub-main",
  model: "history",
  data() {
    return {
      activeName: "featured"
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  },
  components: {
    featured: Featured
  }
};
</script>
<style>
</style>
